From: Tom Tromey <tromey@redhat.com>
To: Stan Shebs <stan@codesourcery.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] More C++ static fields for tracepoints
Date: Thu, 18 Mar 2010 16:44:00 -0000 [thread overview]
Message-ID: <m3fx3x381l.fsf@fleche.redhat.com> (raw)
In-Reply-To: <4BA15504.9020707@codesourcery.com> (Stan Shebs's message of "Wed, 17 Mar 2010 15:17:40 -0700")
>>>>> "Stan" == Stan Shebs <stan@codesourcery.com> writes:
Stan> This patch solves a couple intertwined problems relating to
Stan> tracepoint collection of C++ classes with static fields. First,
Stan> it adds recognition of variables (including static fields) whose
Stan> location expressions indicate that they have been optimized out.
As ax-gdb grows I am starting to wonder whether we could unify it with
eval.c somehow.
Stan> Second, to collect an instance of a class with static fields, we
Stan> need to issue more bytecodes, since static fields are stored at
Stan> their own addresses, separately from the instance.
A static field may itself be of a type with static fields. That doesn't
seem to be handled in this code... should it be? And if so, be careful
about the case where a class refers to itself recursively via static
fields; we still have some printing bugs in this area :(
Tom
next prev parent reply other threads:[~2010-03-18 16:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-17 22:17 Stan Shebs
2010-03-18 16:44 ` Tom Tromey [this message]
2010-03-18 18:20 ` Stan Shebs
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=m3fx3x381l.fsf@fleche.redhat.com \
--to=tromey@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=stan@codesourcery.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