From: Tom Tromey <tromey@redhat.com>
To: Gdb List <gdb@sources.redhat.com>
Subject: Two feature suggestions
Date: Sat, 09 Nov 2002 14:32:00 -0000 [thread overview]
Message-ID: <87lm42bct4.fsf@fleche.redhat.com> (raw)
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 <expression>.validate
and have it do something like:
b java.awt.Window.validate
cond this == <value of expression>
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
next reply other threads:[~2002-11-09 22:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-09 14:32 Tom Tromey [this message]
2002-11-09 14:38 ` Daniel Jacobowitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lm42bct4.fsf@fleche.redhat.com \
--to=tromey@redhat.com \
--cc=gdb@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox