From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31312 invoked by alias); 9 Nov 2002 22:32:55 -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 31300 invoked from network); 9 Nov 2002 22:32:53 -0000 Received: from unknown (HELO gash2.peakpeak.com) (207.174.178.17) by sources.redhat.com with SMTP; 9 Nov 2002 22:32:53 -0000 Received: from fleche.redhat.com (mt9.peakpeak.com [206.168.3.153] (may be forged)) by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id PAA11926; Sat, 9 Nov 2002 15:32:49 -0700 Received: by fleche.redhat.com (Postfix, from userid 1000) id 277624F828C; Sat, 9 Nov 2002 15:25:44 -0700 (MST) To: Gdb List Subject: Two feature suggestions From: Tom Tromey Reply-To: tromey@redhat.com X-Attribution: Tom X-Zippy: Boy, am I glad it's only 1971... Date: Sat, 09 Nov 2002 14:32:00 -0000 Message-ID: <87lm42bct4.fsf@fleche.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-11/txt/msg00100.txt.bz2 While debugging libgcj today I ran across a couple features I would find useful. These are applicable to both C++ and Java. First, if you have a large inheritance tree, sometimes you don't know the class which actually defines a given method. For instance, in my case I want to set a breakpoint on the `validate' method. I'm looking at an object of type `Window'. Window doesn't implement validate, it inherits it from its superclass. I'd like to be able to type `b java.awt.Window.validate' and have gdb find the actual implementation for me. Traversing the inheritance tree is more easily done by gdb than by me. Also, in my case I only want a breakpoint for that method for my particular window. I'd like to be able to type something like: b .validate and have it do something like: b java.awt.Window.validate cond this == That is, set an object-specific breakpoint on the actual `validate' method that will be called on the object I'm interested in. These are both convenience operations -- I can do them by hand, but I'd prefer that gdb do the lookups and such for me. Tom