From: Vincent Benony <vbenony@nordnet.fr>
To: Vladimir Prus <vladimir@codesourcery.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: GDB C plugin system, and STL container viewer as an example
Date: Fri, 23 May 2008 19:59:00 -0000 [thread overview]
Message-ID: <1211553158.6621.6.camel@bsr-desktop> (raw)
In-Reply-To: <g16jrk$3r6$1@ger.gmane.org>
> I don't see how you report that fact that the number of children of a
> varobj has changed. Without that, I'm not sure how useful MI display
> of vectors is. Am I missing something?
>
> - Volodya
this is done by lines 1157 to 1166 of varobj.c
if (plugins_type_handled(varobj_get_gdb_type(*varp)))
{
int new_childs = plugins_get_num_children(*varp);
if (new_childs != (*varp)->num_children)
{
(*varp)->num_children = new_childs;
(*varp)->children = varobj_list_children (*varp);
VEC_safe_push (varobj_p, result, *varp);
}
}
I evaluate the number of children at each update, and I compare with the
current number of childs stored in the varobj structure, if different,
object is added to update list.
It seems to work well into KDevelop and Insight/GDB, ie if I step in my
source code, I can see children items beeing added at each push_back.
Only Eclipse/CDT has a problem handling a vector going from 0 to 1
child (child is not displayed, but Eclipse say that number of children
has changed, displaying the correct number ; seems like an Eclipse bug),
but it works when going from 1 to 2 children, or more...
next prev parent reply other threads:[~2008-05-23 14:33 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-23 18:34 Vincent Benony
2008-05-23 19:30 ` Vladimir Prus
2008-05-23 19:53 ` Daniel Jacobowitz
2008-05-27 18:17 ` Vincent Bénony
2008-05-27 18:21 ` Thiago Jung Bauermann
2008-05-23 19:59 ` Vincent Benony [this message]
2008-05-23 20:31 ` Vladimir Prus
2008-05-23 20:39 ` Vincent Benony
2008-05-23 20:46 ` 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=1211553158.6621.6.camel@bsr-desktop \
--to=vbenony@nordnet.fr \
--cc=gdb-patches@sources.redhat.com \
--cc=vladimir@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