From bf8793bb97185c07036fa3b686f391f504fb0291 Mon Sep 17 00:00:00 2001 From: Yao Qi Date: Thu, 29 Aug 2013 04:58:26 +0000 Subject: [PATCH] gdb/ * varobj.c (install_dynamic_child): Remove trailing space. Add one blank line after variable declaration. --- gdb/ChangeLog | 5 +++++ gdb/varobj.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6e4c0361f95..ae4559495f2 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2013-08-29 Yao Qi + + * varobj.c (install_dynamic_child): Remove trailing space. + Add one blank line after variable declaration. + 2013-08-28 Jan Kratochvil PR gdb/15415 diff --git a/gdb/varobj.c b/gdb/varobj.c index d4fa6ba0cc0..ced3e2d45bc 100644 --- a/gdb/varobj.c +++ b/gdb/varobj.c @@ -1045,11 +1045,11 @@ install_dynamic_child (struct varobj *var, *cchanged = 1; } } - else + else { varobj_p existing = VEC_index (varobj_p, var->children, index); - int type_updated = update_type_if_necessary (existing, value); + if (type_updated) { if (type_changed) -- 2.30.2