+2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * varobj.c (varobj_create): Don't set valid_block when creating a
+ floating varobj.
+
2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
* varobj.c (varobj_create): Remove out of date comment.
+2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * gdb.python/py-mi.exp: Don't expect a thread-id for floating
+ varobj.
+ * gdb.mi/mi-var-create-rtti.exp: Likewise.
+
2018-01-21 Don Breazeal <donb@codesourcery.com>
Andrew Burgess <andrew.burgess@embecosm.com>
"\\^done,name=\"sp1\",numchild=\"0\",value=\"$hex\",type=\"void \\*\",thread-id=\"$decimal\",has_more=\"0\"" \
"-var-create sp1 * \$sp"
mi_gdb_test "-var-create sp2 @ ((void*)\$sp)" \
- "\\^done,name=\"sp2\",numchild=\"0\",value=\"$hex\",type=\"void \\*\",thread-id=\"$decimal\",has_more=\"0\"" \
+ "\\^done,name=\"sp2\",numchild=\"0\",value=\"$hex\",type=\"void \\*\",has_more=\"0\"" \
"-var-create sp2 @ \$sp"
gdb_exit
type_changed false new_num_children 1 dynamic 1 has_more 0
} {
} {
- { name {container.\[0\]} exp {\[0\]} numchild 0 type int thread-id 1 }
+ { name {container.\[0\]} exp {\[0\]} numchild 0 type int }
}
mi_next "next over update 2"
type_changed false new_num_children 2 dynamic 1 has_more 0
} {
} {
- { name {container.\[1\]} exp {\[1\]} numchild 0 type int thread-id 1 }
+ { name {container.\[1\]} exp {\[1\]} numchild 0 type int }
}
mi_gdb_test "-var-set-visualizer container None" \
type_changed false new_num_children 2 dynamic 1 has_more 0
} {
} {
- { name {container.\[0\]} exp {\[0\]} numchild 0 type int thread-id 1 }
- { name {container.\[1\]} exp {\[1\]} numchild 0 type int thread-id 1 }
+ { name {container.\[0\]} exp {\[0\]} numchild 0 type int }
+ { name {container.\[1\]} exp {\[1\]} numchild 0 type int }
}
mi_gdb_test "-var-set-visualizer container ContainerPrinter" \
type_changed false new_num_children 2 dynamic 1 has_more 0
} {
} {
- { name {container.\[0\]} exp {\[0\]} numchild 0 type int thread-id 1 }
- { name {container.\[1\]} exp {\[1\]} numchild 0 type int thread-id 1 }
+ { name {container.\[0\]} exp {\[0\]} numchild 0 type int }
+ { name {container.\[1\]} exp {\[1\]} numchild 0 type int }
}
mi_list_varobj_children_range container 1 2 2 {
}
var->format = variable_default_display (var.get ());
- var->root->valid_block = innermost_block.block ();
+ var->root->valid_block =
+ var->root->floating ? NULL : innermost_block.block ();
var->name = expression;
/* For a root var, the name and the expr are the same. */
var->path_expr = expression;