From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7694 invoked by alias); 15 Dec 2002 06:48:22 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 7686 invoked from network); 15 Dec 2002 06:48:22 -0000 Received: from unknown (HELO tomts11-srv.bellnexxia.net) (209.226.175.55) by sources.redhat.com with SMTP; 15 Dec 2002 06:48:22 -0000 Received: from ehville ([65.94.64.65]) by tomts11-srv.bellnexxia.net (InterMail vM.5.01.04.19 201-253-122-122-119-20020516) with SMTP id <20021215064821.QYYX23192.tomts11-srv.bellnexxia.net@ehville>; Sun, 15 Dec 2002 01:48:21 -0500 Message-ID: <000701c2a405$ee645620$c11ffea9@ehville> From: "Jacques Le Normand" To: "Michael Elizabeth Chastain" , Cc: References: <200212150547.gBF5lg511015@duracef.shout.net> Subject: Re: casting in gdb Date: Sat, 14 Dec 2002 22:48:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-SW-Source: 2002-12/txt/msg00213.txt.bz2 absolutely! I'm currently starting to write an elisp gdb front-end that will translate directives so that gdb can understand them. Hewever this apprach is implementation dependant (both for gdb and gcc) and will only work for the stl. Doing this would not only make my job easier, but more scalable. However, I wonder if enough information is given to gdb to be able to non-deterministically cast. I am a gdb newbie, but if unused methods are given the chop by g++, then how will gdb be able to cast with string::string(char*) if we decide not to use the constructor? Or would gdb know how to cast to/from all stl objects? --Jacques ----- Original Message ----- From: "Michael Elizabeth Chastain" To: ; Cc: Sent: Sunday, December 15, 2002 12:47 AM Subject: Re: casting in gdb > I'm playing with the idea that gdb should know more about the C++ > standard library types, in the same spirit that gdb knows that a C "char > *" usually points to a string terminated with '\0'. I would like gdb > to understood more about std::string, std::vector, std:map, and so on. > > Daniel J, what do you think? > > Michael C >