diff options
author | Yao Qi <yao@codesourcery.com> | 2013-11-23 15:58:04 +0800 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2014-06-12 15:27:31 +0800 |
commit | cde5ef40f807cf37ac4fc5adcf621c615049eda9 (patch) | |
tree | 67e316883c0d15012c04c1bf3d1c69c0917e8ce9 /gdb/varobj.c | |
parent | 576ea0910f0bdb3b4705d6faa24d30c86ccf7a09 (diff) | |
download | gdb-cde5ef40f807cf37ac4fc5adcf621c615049eda9.zip gdb-cde5ef40f807cf37ac4fc5adcf621c615049eda9.tar.gz gdb-cde5ef40f807cf37ac4fc5adcf621c615049eda9.tar.bz2 |
Rename varobj_pretty_printed_p to varobj_is_dynamic_p
We think varobj with --available-children-only behaves like a dynamic
varobj, so dyanmic varobj is not pretty-printer specific. We rename
varobj_pretty_printed_p to varobj_is_dynamic_p, so that we can handle
available-children-only checking in varobj_is_dynamic_p in the next
patch.
gdb:
2014-06-12 Yao Qi <yao@codesourcery.com>
* varobj.c (varobj_pretty_printed_p): Rename to ...
(varobj_is_dynamic_p): ... this. New function.
* varobj.h (varobj_pretty_printed_p): Remove declaration.
(varobj_is_dynamic_p): Declare.
* mi/mi-cmd-var.c (print_varobj): All callers updated.
(mi_print_value_p, varobj_update_one): Likewise.
Diffstat (limited to 'gdb/varobj.c')
-rw-r--r-- | gdb/varobj.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/varobj.c b/gdb/varobj.c index b971258..94050c6 100644 --- a/gdb/varobj.c +++ b/gdb/varobj.c @@ -1066,8 +1066,10 @@ varobj_get_attributes (struct varobj *var) return attributes; } +/* Return true if VAR is a dynamic varobj. */ + int -varobj_pretty_printed_p (struct varobj *var) +varobj_is_dynamic_p (struct varobj *var) { return var->dynamic->pretty_printer != NULL; } |