From 0061ea2440bff35c29fa18c752528680dc985242 Mon Sep 17 00:00:00 2001 From: Yao Qi Date: Sun, 10 Nov 2013 10:30:46 +0800 Subject: [PATCH] Use mi_create_floating_varobj In gdb.python/py-mi.exp, two varobjs container and nscont are created when pretty-printing is still not enabled, so they are not dynamic varobj, IIUC. In this patch, we use mi_create_floating_varobj instead of mi_create_dynamic_varobj. gdb/testsuite: 2013-11-22 Yao Qi * gdb.python/py-mi.exp: Use mi_create_floating_varobj instead of mi_create_dynamic_varobj. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/gdb.python/py-mi.exp | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 5619a45dbc5..9b78096d33e 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2013-11-22 Yao Qi + + * gdb.python/py-mi.exp: Use mi_create_floating_varobj instead + of mi_create_dynamic_varobj. + 2013-11-20 Pedro Alves * gdb.base/maint.exp (maint print objfiles): Consume one line at a diff --git a/gdb/testsuite/gdb.python/py-mi.exp b/gdb/testsuite/gdb.python/py-mi.exp index 28aa2c8b556..69bc0936223 100644 --- a/gdb/testsuite/gdb.python/py-mi.exp +++ b/gdb/testsuite/gdb.python/py-mi.exp @@ -49,7 +49,7 @@ mi_gdb_test "python exec (open ('${remote_python_file}').read ())" "" mi_continue_to_line [gdb_get_line_number {MI breakpoint here} ${srcfile}] \ "step to breakpoint" -mi_create_dynamic_varobj container c \ +mi_create_floating_varobj container c \ "create container varobj, no pretty-printing" mi_list_varobj_children container { @@ -60,7 +60,7 @@ mi_list_varobj_children container { mi_delete_varobj container "delete varobj" -mi_create_dynamic_varobj nscont nstype \ +mi_create_floating_varobj nscont nstype \ "create nscont varobj, no pretty-printing" mi_list_varobj_children nscont { -- 2.30.2