Re: set print object on should affect MI varobjs (PR mi/13393)

Jan Kratochvil
2012-04-16T18:35:08Z

On Sat, 14 Apr 2012 14:28:26 +0200, xgsa wrote:
> >Yeah. I'm sorry about the delay. The patch is ok, please check it in.
>
> Checked in.

Fedora 17 x86_64:
+FAIL: gdb.mi/mi-var-rtti.exp: list children of s.public in type_update_when_use_rtti
+FAIL: gdb.mi/mi-var-rtti.exp: list children of s.ptr (without RTTI) in type_update_when_use_rtti
+FAIL: gdb.mi/mi-var-rtti.exp: list children of s.ptr.public (without RTTI) in type_update_when_use_rtti

Thanks,
Jan

+Expecting: \^done,numchild=".*",children=\[child={name="S.public.ptr",exp="ptr",numchild="1",type="Base \*"(,thread-id="[0-9]+")?}.*\],has_more="0"
+Expecting: ^(-var-list-children S\.public [^M
+]+)?(\^done,numchild=".*",children=\[child={name="S.public.ptr",exp="ptr",numchild="1",type="Base \*"(,thread-id="[0-9]+")?}.*\],has_more="0"[^M
+]+[(]gdb[)] ^M
+[ ]*)
+-var-list-children S.public ^M
+&"warning: can't find linker symbol for virtual table for `Base' value\n"^M
+&"warning: found `Base::Base()' instead\n"^M
+&"warning: can't find linker symbol for virtual table for `Base' value\n"^M
+&"warning: found `Base::Base()' instead\n"^M
+&"warning: can't find linker symbol for virtual table for `Base' value\n"^M
+&"warning: found `Base::Base()' instead\n"^M
+^done,numchild="1",children=[child={name="S.public.ptr",exp="ptr",numchild="1",type="Base *",thread-id="1"}],has_more="0"^M
+(gdb) ^M
+FAIL: gdb.mi/mi-var-rtti.exp: list children of s.public in type_update_when_use_rtti
+Expecting: \^done,numchild=".*",children=\[child={name="S.public.ptr.public",exp="public",numchild="1"(,thread-id="[0-9]+")?}.*\],has_more="0"
+Expecting: ^(-var-list-children S\.public\.ptr [^M
+]+)?(\^done,numchild=".*",children=\[child={name="S.public.ptr.public",exp="public",numchild="1"(,thread-id="[0-9]+")?}.*\],has_more="0"[^M
+]+[(]gdb[)] ^M
+[ ]*)
+-var-list-children S.public.ptr ^M
+&"warning: can't find linker symbol for virtual table for `Base' value\n"^M
+&"warning: found `Base::Base()' instead\n"^M
+&"warning: can't find linker symbol for virtual table for `Base' value\n"^M
+&"warning: found `Base::Base()' instead\n"^M
+&"warning: can't find linker symbol for virtual table for `Base' value\n"^M
+&"warning: found `Base::Base()' instead\n"^M
+&"warning: can't find linker symbol for virtual table for `Base' value\n"^M
+&"warning: found `Base::Base()' instead\n"^M
+^done,numchild="1",children=[child={name="S.public.ptr.public",exp="public",numchild="1",thread-id="1"}],has_more="0"^M
+(gdb) ^M
+FAIL: gdb.mi/mi-var-rtti.exp: list children of s.ptr (without RTTI) in type_update_when_use_rtti

+Expecting: \^done,numchild=".*",children=\[child={name="S.public.ptr.public.A",exp="A",numchild="0",type="int"(,thread-id="[0-9]+")?}.*\],has_more="0"
+Expecting: ^(-var-list-children S\.public\.ptr\.public [^M
+]+)?(\^done,numchild=".*",children=\[child={name="S.public.ptr.public.A",exp="A",numchild="0",type="int"(,thread-id="[0-9]+")?}.*\],has_more="0"[^M
+]+[(]gdb[)] ^M
+[ ]*)
+-var-list-children S.public.ptr.public ^M
+&"warning: can't find linker symbol for virtual table for `Base' value\n"^M
+&"warning: found `Base::Base()' instead\n"^M
+&"warning: can't find linker symbol for virtual table for `Base' value\n"^M
+&"warning: found `Base::Base()' instead\n"^M
+^done,numchild="1",children=[child={name="S.public.ptr.public.A",exp="A",numchild="0",type="int",thread-id="1"}],has_more="0"^M
+(gdb) ^M
+FAIL: gdb.mi/mi-var-rtti.exp: list children of s.ptr.public (without RTTI) in type_update_when_use_rtti