* gdb.python/lib-types.exp (deep_items): Rename from deepitems.

This commit is contained in:
Paul Koning
2011-10-28 14:49:21 +00:00
parent 0aaaf06393
commit d6a5d40c76
2 changed files with 8 additions and 2 deletions

View File

@@ -1,9 +1,15 @@
2011-10-28 Paul Koning <paul_koning@dell.com>
* gdb.python/lib-types.exp (deep_items): Rename from deepitems.
2011-10-27 Jan Kratochvil <jan.kratochvil@redhat.com>
* lib/mi-support.exp (breakpoint_re): Suppress match reporting.
(mi_gdb_test): Import globals thread_selected_re
and breakpoint_re. Expect them optionally at the regex start.
2011-10-27 Doug Evans <dje@google.com>
* gdb.python/python.exp: Test source -s.

View File

@@ -139,7 +139,7 @@ gdb_test_no_output "python enum1_list = enum1_dict.items ()"
gdb_test_no_output "python enum1_list.sort ()"
gdb_test "python print enum1_list" {\[\('A', 0L\), \('B', 1L\), \('C', 2L\)\]}
# test deepitems
# test deep_items
gdb_test_no_output "python struct_a = gdb.lookup_type ('struct A')"
gdb_test "python print struct_a.keys ()" {\['a', '', 'c', ''\]}
gdb_test "python print \[k for k,v in gdb.types.deepitems(struct_a)\]" {\['a', 'b0', 'b1', 'bb0', 'bb1', 'bbb0', 'bbb1', 'c', 'dd0', 'dd1', 'd2', 'd3'\]}
gdb_test "python print \[k for k,v in gdb.types.deep_items(struct_a)\]" {\['a', 'b0', 'b1', 'bb0', 'bb1', 'bbb0', 'bbb1', 'c', 'dd0', 'dd1', 'd2', 'd3'\]}