Revert unexpected rename in previous patch
authorSimon Marchi <simon.marchi@ericsson.com>
Thu, 23 Nov 2017 16:05:22 +0000 (11:05 -0500)
committerSimon Marchi <simon.marchi@ericsson.com>
Thu, 23 Nov 2017 16:05:22 +0000 (11:05 -0500)
While working on the previous patch, I renamed variables whose type I
changed to let the compiler help me find their usages, but I forgot to
rename one back to its original name.  This patch fixes it.

gdb/ChangeLog:

* varobj.c (struct varobj_dynamic) <children_requested_>: Rename
back to...
<children_requested>: ... this.
(varobj_get_num_children, varobj_update): Adjust.

gdb/ChangeLog
gdb/varobj.c

index c7dbab5102979fbdb4eddb71ae4b36e0f909f466..3fdeae1879c82e0c23ad49e3a13e1e174dc932dd 100644 (file)
@@ -1,3 +1,10 @@
+2017-11-23  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * varobj.c (struct varobj_dynamic) <children_requested_>: Rename
+       back to...
+       <children_requested>: ... this.
+       (varobj_get_num_children, varobj_update): Adjust.
+
 2017-11-23  Simon Marchi  <simon.marchi@ericsson.com>
 
        * ada-varobj.c (ada_value_is_changeable_p): Change int to bool where applicable.
 2017-11-23  Simon Marchi  <simon.marchi@ericsson.com>
 
        * ada-varobj.c (ada_value_is_changeable_p): Change int to bool where applicable.
index ce324b7af528968762f94e891d13f18403b9210e..93b97f6f70c74d2206452f6780df98af9da3426b 100644 (file)
@@ -113,7 +113,7 @@ struct varobj_dynamic
      used to decide if dynamic varobj should recompute their children.
      In the event that the frontend never asked for the children, we
      can avoid that.  */
      used to decide if dynamic varobj should recompute their children.
      In the event that the frontend never asked for the children, we
      can avoid that.  */
-  bool children_requested_ = false;
+  bool children_requested = false;
 
   /* The pretty-printer constructor.  If NULL, then the default
      pretty-printer will be looked up.  If None, then no
 
   /* The pretty-printer constructor.  If NULL, then the default
      pretty-printer will be looked up.  If None, then no
@@ -839,7 +839,7 @@ varobj_get_num_children (struct varobj *var)
 const std::vector<varobj *> &
 varobj_list_children (struct varobj *var, int *from, int *to)
 {
 const std::vector<varobj *> &
 varobj_list_children (struct varobj *var, int *from, int *to)
 {
-  var->dynamic->children_requested_ = true;
+  var->dynamic->children_requested = true;
 
   if (varobj_is_dynamic_p (var))
     {
 
   if (varobj_is_dynamic_p (var))
     {
@@ -1629,7 +1629,7 @@ varobj_update (struct varobj **varp, bool is_explicit)
          if (v->frozen)
            continue;
 
          if (v->frozen)
            continue;
 
-         if (!v->dynamic->children_requested_)
+         if (!v->dynamic->children_requested)
            {
              bool dummy;
 
            {
              bool dummy;
 
This page took 0.032076 seconds and 4 git commands to generate.