From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8624 invoked by alias); 18 Jul 2004 19:03:16 -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 8589 invoked from network); 18 Jul 2004 19:03:15 -0000 Received: from unknown (HELO granger.mail.mindspring.net) (207.69.200.148) by sourceware.org with SMTP; 18 Jul 2004 19:03:15 -0000 Received: from user-119a90a.biz.mindspring.com ([66.149.36.10] helo=berman.michael-chastain.com) by granger.mail.mindspring.net with esmtp (Exim 3.33 #1) id 1BmGwI-0002R3-00; Sun, 18 Jul 2004 15:03:11 -0400 Received: by berman.michael-chastain.com (Postfix, from userid 502) id 2D9C94B104; Sun, 18 Jul 2004 15:03:16 -0400 (EDT) To: drow@false.org, eliz@gnu.org Subject: Re: How to setup a breakpoint on constructor Cc: gdb@sources.redhat.com Message-Id: <20040718190316.2D9C94B104@berman.michael-chastain.com> Date: Sun, 18 Jul 2004 19:29:00 -0000 From: mec.gnu@mindspring.com (Michael Elizabeth Chastain) X-SW-Source: 2004-07/txt/msg00233.txt.bz2 eliz> Sorry, I must be missing something: if we put the breakpoint on all eliz> the instances of the constructor's code, and do that without asking eliz> the user anything, what UI aspects need to be figured out and eliz> designed? What does 'print &A::A()' print? What does 'disassemble A::A()' print? There's an assumption in some of gdb's commands that one source code address maps to one object code address. The UI has to acknowledge that some source code addresses map to multiple object code addresses. Michael C