[nemiver/varobjs-support] Populate Variable::num_expected_children at Variable parsing time



commit 62963bdbd3ed69b313a4e6671a3c96526418ecc3
Author: Dodji Seketeli <dodji redhat com>
Date:   Sun Apr 12 20:03:27 2009 +0200

    Populate Variable::num_expected_children at Variable parsing time
    
    	* GDBMIParser::parse_variable: Don't forget to set
    	IDebugger::Variable::num_expected_children, so that
    	IDebugger::Variable::needs_unfolding() later works correctly.
---
 src/dbgengine/nmv-gdbmi-parser.cc |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/dbgengine/nmv-gdbmi-parser.cc b/src/dbgengine/nmv-gdbmi-parser.cc
index 56ce831..f698173 100644
--- a/src/dbgengine/nmv-gdbmi-parser.cc
+++ b/src/dbgengine/nmv-gdbmi-parser.cc
@@ -6717,6 +6717,7 @@ GDBMIParser::parse_variable (UString::size_type a_from,
             var->value (value);
         } else if (result->variable () == "numchild") {
             int s = atoi (value.c_str ());
+            var->num_expected_children (s);
             LOG_D ("num children: " << s, GDBMI_PARSING_DOMAIN);
         } else if (result->variable () == "type") {
             var->type (value);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]