From: Nick Roberts <nickrob@snap.net.nz>
To: "Doug Evans" <dje@google.com>
Cc: "Vladimir Prus" <ghost@cs.msu.su>, gdb-patches@sources.redhat.com
Subject: Re: [RFC] Variable objects for STL containers
Date: Sun, 17 Feb 2008 22:27:00 -0000 [thread overview]
Message-ID: <18360.46269.11283.751538@kahikatea.snap.net.nz> (raw)
In-Reply-To: <e394668d0802171357s7224cb1h3448ac3565e84c8@mail.gmail.com>
> There's something I don't understand, and maybe you can help clear
> things up. It seems like this approach is going down a path of
> hardwiring a lot of knowledge into gdb. Solving this just for STL
> (and then only one version of STL) seems to be one piece of a general
> problem, why pick an unscalable solution?
This is not any STL, but Gcc's STL. Gdb and Gcc are both part of the GNU
project so should possibly have a special relationship. By unscaleable, I
guess you mean not general. Hardwiring is a worry but I have briefly discussed
this subject on the Gcc and been assured that the code used is quite stable.
It's also a matter of keeping Gcc developers informed about intended use of
Gcc internals.
> If the knowledge was in a
> collection of dlopen'd .so (or some such), and users could provide
> more, then that might be reasonable.
If you know how to do it, that would be an improvement. Presumably it could
also be done at a later stage, adapting any hardwired solution.
> [Setting aside use of python for
> this, I understand there is some pushback to going that route. It'd
> be cool if the python support used the same interface, then one could
> have it both ways. The python support is, of course, not just for
> this and one wouldn't want python to plug into gdb in a piecemeal
> fashion. OTOH, if a clean solution could be found that let one solve
> this with either C[/C++] or python then that might be very useful.]
I don't really understand how the python support will be implemented but I
don't see why variable objects for STL containers should require Python
libraries to be present.
--
Nick http://www.inet.net.nz/~nickrob
next prev parent reply other threads:[~2008-02-17 22:27 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-13 3:33 Nick Roberts
2008-02-15 14:29 ` Marc Khouzam
2008-02-15 14:42 ` Daniel Jacobowitz
2008-02-15 21:57 ` Nick Roberts
2008-02-17 13:36 ` Vladimir Prus
2008-02-17 20:18 ` Nick Roberts
2008-02-17 21:57 ` Doug Evans
2008-02-17 22:27 ` Nick Roberts [this message]
2008-02-26 2:34 ` Daniel Jacobowitz
2008-02-18 7:45 ` Vladimir Prus
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=18360.46269.11283.751538@kahikatea.snap.net.nz \
--to=nickrob@snap.net.nz \
--cc=dje@google.com \
--cc=gdb-patches@sources.redhat.com \
--cc=ghost@cs.msu.su \
/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